import request from "@/utils/request.js";

/**
 * 查询商品
 * @param params
 * @returns {AxiosPromise}
 */
export function comment(params) {
    return request({
        // closeLoading: true,
        // closeInterceptors: true,
        url: "/comment/getAll",
        method: "post",
        data: params //注意：如果是get请求请使用 params: params
    });

}
export function getCommentById(params) {
    return request({
        // closeLoading: true,
        // closeInterceptors: true,
        url: "/comment/getCommentByProductId", //如果是绝对路径就不会在使用配置里的url
        method: "post",
        data: params,
    });
}


export function getCommentByUserId(params) {
    return request({
        // closeLoading: true,
        // closeInterceptors: true,
        url: "/comment/getCommentByUserId", //如果是绝对路径就不会在使用配置里的url
        method: "post",
        data: params,
    });
}